
// import Vue from 'vue'
import App from './App'
import router from './router'
import 'font-awesome/css/font-awesome.min.css'
// 按需引入element-ui
import { Button } from 'element-ui'
Vue.component(Button.name, Button)

// 注册store
import store from './store/index'

// 引入vux中的组件
import { Alert, TransferDom } from 'vux'
Vue.component('alert', Alert)
Vue.directive('transfer-dom', TransferDom)

Vue.config.productionTip = false

new Vue({
  el: '#app',
  router, // 用vue-router
  store, // 用vuex
  render: h => h(App)
})
